﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="siteStatistics.aspx.vb" Inherits="myWebsite.siteStatistics" %>
<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<br /> This chart shows you the most active members on the site.
<br />
<br />

    <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource2" 
        BackColor="LightGray" BackSecondaryColor="White">
    <series>
        <asp:Series Name="Series1" XValueMember="UserName" 
            YValueMembers="CountOfPagesViewed">
        </asp:Series>
    </series>
    <chartareas>
        <asp:ChartArea Name="ChartArea1">
        </asp:ChartArea>
    </chartareas>
</asp:Chart>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
    ConnectionString="<%$ ConnectionStrings:MotorcyclesConn %>" 
    ProviderName="<%$ ConnectionStrings:MotorcyclesConn.ProviderName %>" 
    SelectCommand="SELECT [UserName], [CountOfPagesViewed] FROM [UsersViewCount]">
</asp:SqlDataSource>

    <br />
    <br />
    <br />
    <br />
</asp:Content>
